import Vue from 'vue'
import VueRouter from 'vue-router'

// 导入路由子组件
import Reg from '@/views/Reg/Reg.vue'
import Login from '@/views/Login/Login.vue'
// 注册路由文件
Vue.use(VueRouter)

//配置路由规则
const routes = [
  {path:'/login',
  name:'login',
  component: Login
  },
  {path:'/reg',
  name:'reg',
  component: Reg
  },

]

const router = new VueRouter({
  routes
})

export default router
